{% extends "base.html" %}

{% block navbar %}
<a href="{{shop_base}}/">Home</a> 
{% endblock %}

{% block content %}

{% if form.has_errors %}
<p>Your email address and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action=".">
<table>
<tr><td><label for="id_username">Email Address:</label></td><td>{{ form.username }}</td></tr>
<tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr>
</table>

<input type="submit" value="login" />
<input type="hidden" name="next" 
{% if next %}
    value={{ next }} />
{% else %}
    value="{{shop_base}}/account/info" />
{% endif %}
</form>

<p>If you do not have an account, please <a href="{% url satchmo_account_create %}">click here.</a></p>
<p>If you do not remember your password, please <a href="{% url satchmo_password_reset %}">click here</a> to have it reset.</p>

{% endblock %}
